]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/network: Fix enterprise network connecting from panel
authorTuomas Nurmi <tuomas.nurmi@opinsys.fi>
Thu, 25 Jul 2024 07:14:22 +0000 (07:14 +0000)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 29 Jul 2024 14:27:26 +0000 (16:27 +0200)
Use the right variable. A static WirelessNetwork._securityTypes
variable does exist, but the correct variable when checking
autoconnect possibility is this._securityType; this._securityTypes
is undefined, causing clicking an enterprise network name in panel
network selector do nothing instead of properly opening GNOME
Settings panel.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7698

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3426>

js/ui/status/network.js

index cdc9ba892811740cb9b36fd71f88994c047efdcf..6f206ac8e9ea711f6cba97ca8739fec4e44580e0 100644 (file)
@@ -936,8 +936,8 @@ const WirelessNetwork = GObject.registerClass({
 
     canAutoconnect() {
         const canAutoconnect =
-            this._securityTypes !== NM.UtilsSecurityType.WPA_ENTERPRISE &&
-            this._securityTypes !== NM.UtilsSecurityType.WPA2_ENTERPRISE;
+            this._securityType !== NM.UtilsSecurityType.WPA_ENTERPRISE &&
+            this._securityType !== NM.UtilsSecurityType.WPA2_ENTERPRISE;
         return canAutoconnect;
     }